<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GonzalesReportCreditCard.aspx.cs" Inherits="GonzalesReportCreditCard" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <link href="WebStyle.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
<!--
.HorizontalLineFromTop {	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #999999;
}
-->
    </style>
</head>
<script language="javascript" src="js/popcalendar.js"></script>
<body>
<form id="form1" runat="server" text='Claimants'>
  <div>
    <table width="100%" border="0" cellspacing="1" cellpadding="8">
      <tr>
        <td class="PageTitle"><asp:Label ID="Label_PageTitle" Text='Reports' runat="server" />
        </td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="1" cellpadding="2">
          <tr>
            <td width="170" rowspan="2" valign="top"><asp:Label CssClass="FormTitle" ID="Label_Information" runat="server" Text='Reports :: Credit Card Reports' /></td>
            <td width="8" rowspan="2" class="VerticalDivider">&nbsp;</td>
            <td width="967"><asp:Table CellPadding="5" CellSpacing="0" ID="Table_MessageBox" Width="100%" runat="server" Visible="false">
              <asp:TableRow>
                <asp:TableCell CssClass="ErrorBox" ></asp:TableCell>
              </asp:TableRow>
            </asp:Table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" class="FormBorder">
              <tr>
                <td colspan="4" align="right" class="FormLineItemAlt"><input type="image" name="ButtonCancel" id="ButtonCancel" src="img/popcalendar/close.gif"  /></td>
              </tr>
              <tr>
                <td width="25%" class="FormLineItem"><asp:Label CssClass="FormField" ID="Label_Entity" runat="server" Text='Entity:' />
                        <span class="MessageError">*</span></td>
                <td width="25%" class="FormLineItem"><asp:DropDownList CssClass="FormDropDown" ID="DropDownList_ByEntity" runat="server" OnSelectedIndexChanged="DropDownList_ByEntity_SelectedIndexChanged" AutoPostBack="True"></asp:DropDownList></td>
                <td width="25%" class="FormLineItem"><asp:Label CssClass="FormField" ID="Label_Company" runat="server" Text='Company:' />
                        <span class="MessageError">*</span></td>
                <td width="25%" class="FormLineItem"><asp:DropDownList CssClass="FormDropDown" ID="DropDownList_ByCompany" runat="server"></asp:DropDownList></td>
              </tr>
              <tr>
                <td class="FormLineItemAlt"><asp:Label CssClass="FormField" ID="Label_EmployeeID" runat="server" Text='Employee ID:' /></td>
                <td class="FormLineItemAlt"><asp:TextBox CssClass="FormTextBox" ID="TextBox_EmployeeID" runat="server" /></td>
                <td class="FormLineItemAlt"><asp:Label CssClass="FormField" ID="Label_Date" runat="server" Text='Transaction Date:' />                </td>
                <td class="FormLineItemAlt"><asp:TextBox CssClass="FormTextBox" ID="TextBox_DateFrom" runat="server" Columns="10" TextMode="SingleLine" />&nbsp;<img src="img/calendar.gif" runat="server" id="img_calendarFrom" style="vertical-align:middle;"/>                
                  <asp:Label ID="Label_To" CssClass="FormField" Text="To" runat="server" />                 
                  <asp:TextBox CssClass="FormTextBox" ID="TextBox_DateTo" runat="server" Columns="10" TextMode="SingleLine" />&nbsp;<img src="img/calendar.gif" id="img_calendarTo" runat="server" style="vertical-align:middle;" /></td>
              </tr>
              <tr>
                <td class="FormLineItem"><asp:Label ID="Label_Sorting" Text='Sorting:' runat="server" CssClass="FormField" /></td>
                <td class="FormLineItem"><span class="TableResultCriteriaBar">
                  <asp:DropDownList CssClass="FormDropDown" ID="DropDownList_SortBy" runat="server"></asp:DropDownList>
                  </span><span class="TableResultCriteriaBar">
                    <asp:DropDownList CssClass="FormDropDown" ID="DropDownList_SortOrder" runat="server"></asp:DropDownList>
                  </span></td>
                <td class="FormLineItem"><asp:Label ID="Label_Status" Text='Status:' runat="server" CssClass="FormField" /></td>
                <td class="FormLineItem"><span class="TableResultCriteriaBar">
                  <asp:DropDownList CssClass="FormDropDown" ID="DropDownList_Status" runat="server"></asp:DropDownList>
                  </span></td>
              </tr>
              <tr>
                <td colspan="4" class="FormLineItemAlt"><asp:Button CssClass="FormButton" ID="Button_Submit" runat="server" Text="Submit" OnClick="Button_Submit_Click" />
                        <asp:Button CssClass="FormButton" ID="Button_CSV" runat="server" Text="Output to CSV" OnClick="Button_CSV_Click" />                        
<asp:HyperLink ID="HyperLink_FileDownload" runat="server" CssClass="GridViewLink" Text="Hyperlink"></asp:HyperLink></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td colspan="3" valign="top" class="HorizontalLineFromTop"></td>
          </tr>
          <tr>
            <td colspan="3" valign="top">&nbsp;
                <asp:GridView ID="GridViewResult" runat="server" CellPadding="5" CssClass="FormBorder"
                    Width="100%" AutoGenerateColumns="false" OnRowCreated ="OnRowCreated">
                    <RowStyle CssClass="GridViewItem" />
                  <HeaderStyle CssClass="GridViewHeader" />  
                  <columns>
                  <asp:BoundField DataField="Employee" HeaderText="Employee Name">
                    <itemstyle HorizontalAlign="Center" />                                  </asp:BoundField>
                  <asp:BoundField DataField="Employee ID" HeaderText="Employee ID">
                    <itemstyle HorizontalAlign="Center" />                                  </asp:BoundField>
                 <asp:BoundField DataField="Project ID" HeaderText="Project ID">
                    <itemstyle HorizontalAlign="Center" />                                  </asp:BoundField>
                 <asp:BoundField DataField="Profit Center" HeaderText="Cost Center">
                    <itemstyle HorizontalAlign="Center" />                                  </asp:BoundField>
                 <asp:BoundField DataField="Account Codes" HeaderText="Account Codes">
                    <itemstyle HorizontalAlign="Center" />                                  </asp:BoundField>
                 <asp:BoundField DataField="Description" HeaderText="Txn Description">
                    <itemstyle HorizontalAlign="Left" />                                  </asp:BoundField>
                 <asp:BoundField DataField="Transaction Date" HeaderText="Transaction Date">
                    <itemstyle HorizontalAlign="Center" />                                  </asp:BoundField>
                 <asp:BoundField DataField="Final Currency" HeaderText="Currency">
                    <itemstyle HorizontalAlign="Center" />                                  </asp:BoundField>
                 <asp:BoundField DataField="Final Amount" HeaderText="Amount">
                    <itemstyle HorizontalAlign="Right" />                                  </asp:BoundField>
                  </columns>
        
</asp:GridView>
            </td>
          </tr>
        </table></td>
      </tr>
    </table>
  </div>
</form>
</body>
</html>
